<?php
define('EmpireCMSAdmin','1');
require_once("../class/connect.php");
require_once("../class/db_sql.php");
require_once("../class/functions.php");
require_once("../class/say.php");
$link=db_connect();
$empire=new mysqlquery();

	$act_id=$_REQUEST['id'];
	$sql="UPDATE phome_ecms_actives SET onclick =onclick +1 where id='{$act_id}' limit 1";
	$r=$empire->query($sql);
	if(1){
		echo json_encode(array("flag"=>1,"data"=>$r));
		exit();
	}else{
		echo json_encode(array("flag"=>0,"msg"=>"该记录不存在！"));
		exit();
	}
?>